package cn.dsscm.service;

import cn.dsscm.pojo.Product;
import java.util.List;

public interface ProductService {
    Product getProductById(Integer id) throws Exception;
    int getProductCount(String name, Integer categoryLevel1Id, Integer categoryLevel2Id, Integer categoryLevel3Id) throws Exception;
    boolean add(Product product) throws Exception;
    List<Product> getProductList(String name, Integer categoryLevel1Id, Integer categoryLevel2Id, Integer categoryLevel3Id) throws Exception;
    List<Product> getProductList(String name, Integer categoryLevel1Id, Integer categoryLevel2Id, Integer categoryLevel3Id, Integer offset, Integer pageSize) throws Exception;
    boolean deleteProductById(Integer delId) throws Exception; // 修复：改为boolean类型
    boolean modify(Product product) throws Exception;
    int productNameIsExist(String name) throws Exception;
}